<?php
	ob_start();
	session_start();
	require("../librarys/funcs/Utils.php");
	$util = new Utils();
	if (isset($_SESSION['is_login']) && $_SESSION['is_login'] == 1 && $_SESSION['is_admin'] == 1) {
		$util->redirect("index.php");
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>Đăng nhập</title>
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet"/>
    <link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet"/>
    <link href="css/style.css" rel="stylesheet"/>

    <script type="text/javascript" src="../js/jquery/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="../bootstrap/js/bootstrap.js"></script>

    <script type="text/javascript" src="../js/base.js"></script>
    <script type="text/javascript" src="../js/core.js"></script>
    <script type="text/javascript" src="../js/pages/login.js"></script>
</head>

<body onload="dashboard.security.authentication.init();">
<div class="container">
    <div class="row">
        <div class="span6 offset3">
            <form class="form-horizontal well login-form" method="post" id="login-form"
                  onsubmit="return dashboard.security.authentication.check_login();">
                <h3 style="color: #08c">Đăng nhập vào hệ thống</h3>
                <hr>
                <div id="alert"></div>
                <div class="control-group">
                    <label class="control-label">Tên đăng nhập</label>

                    <div class="controls">
                        <input type="text" id="username" name="username" class="input-xlarge">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">Mật khẩu</label>

                    <div class="controls">
                        <input type="password" id="password" name="password" class="input-xlarge">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>

                    <div class="controls">
                        <label class="checkbox">
                            <input type="checkbox" value="0" name="remember_me" id="remember_me">
                            Remember me </label>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label"></label>

                    <div class="controls">
                        <button class="btn btn-primary" type="submit">
                            Đăng nhập
                        </button>
                        <span class="help-inline"> <a href="javascript:void(0);"
                                                      onclick="dashboard.login.goToForGotPassPage();" id="fogotpass">Quên
                            mật khẩu?</a> </span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
